<template>
  <div class="about-view">
    <div class="header">
      <button class="back-btn" @click="goBack">返回</button>
      <h1 class="title">关于我们</h1>
    </div>
    <div class="content">
      <div class="card">
        <p class="desc">这是一个基于 Vue3 和 Vite 的移动端项目示例</p>
        <p class="desc">使用了 viewport 单位进行移动端适配</p>
        <p class="desc">集成了路由和基本样式</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.back()
}
</script>

<style scoped>
.header {
  padding: 20px;
  background-color: #409eff;
  color: white;
  display: flex;
  align-items: center;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  margin-right: 10px;
  cursor: pointer;
}

.title {
  font-size: 18px;
  font-weight: bold;
}

.content {
  padding: 20px;
}

.card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.desc {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}
</style>  